package com.jflm.util;

import com.jflm.domain.Iresp_common;

public class ContantRC {
	public String msg;

	public ContantRC(String code) {
		this.msg = PropertiesUtils.getProperty(code);
	}
	
	public static Iresp_common getRetMsg(String code){
		return new Iresp_common(code, PropertiesUtils.getProperty(code, code));
	}
	/**
	 * 操作成功
	 */
	public static final String SUCCESS = "0000";//
	/**
	 * 已绑定
	 */
	public static final String ALREADY_BINDING = "00000001";//
	/**
	 * 已被其他用户绑定
	 */
	public static final String ALREADY_BINDING_BY_OTHER = "00000002";//
	
	/**
	 * 更新绑定信息失败
	 */
	public static final String UPDATE_BINDING_FAIL = "00000003";//
	
	/**
	 * 未绑定账户或绑定状态异常
	 */
	public static final String BINDING_EXCEPTION = "00000004";//
	/**
	 * 库中没有绑定信息
	 */
	public static final String NO_BINDINGINFO = "00000005";//
	
	/**
	 * 订单状态异常
	 */
	public static final String ORDER_NOT_EXIST = "60000001";
	
	/**
	 * 扣减积分失败
	 */
	public static final String ORDER_CUT_POINTS_FAIL = "60000002";
	
	/**
	 * 验证码验证失败
	 */
	public static final String VERIFICATION_CODE_ERR = "60000003";
	/**
	 * 用户积分累积兑换超限
	 */
	public static final String USER_EXCHANGE_LIMIT_DAY = "60000004";
	/**
	 * 用户积分累积兑换超限
	 */
	public static final String USER_EXCHANGE_LIMIT_DAY_TIMES = "60000005";
	/**
	 * 用户积分累积兑换超限
	 */
	public static final String USER_EXCHANGE_LIMIT_MONTH = "60000006";
	/**
	 * 请求参数有误
	 */
	public static final String REQUEST_PARAM_ERR = "60000007";
	
	/**
	 * 订单已冲正成功
	 */
	public static final String ORDER_REVOKE_SUCCESS = "60001001";
	/**
	 * 订单正在冲正
	 */
	public static final String ORDER_REVOKING = "60001002";
	/**
	 * 订单冲正状态异常
	 */
	public static final String ORDER_REVOKE_EXCEPTION = "60001003";
	/**
	 * 订单冲正失败
	 */
	public static final String ORDER_REVOKE_FAIL = "60001004";
	/**
	 * 注册失败
	 */
	public static final String ADD_MEMBER_FAIL = "60001005";
	
	/**
	 * 注册用户查询
	 */
	public static final String SELECT_MEMBER_FAIL = "60001006";
	
	/**
	 * 用户状态异常
	 */
	public static final String SELECT_MEMBERSTATE_FAIL = "60001007";
	/**
	 * 绑定状态异常
	 */
	public static final String SELECT_BINDING_FAIL = "60001008";
	/**
	 * 中行交易状态查询接口没有查询到失败信息
	 */
	public static final String SELECT_STATE_FAIL = "0026";
	/**
	 * 参数错误
	 */
	public static final String REVERSE_BINDING_PARAM = "1000";
	
	/**
	 * 验签失败
	 */
	public static final String REVERSE_BINDING_SIGN = "2000";
	
	/**
	 * 绑定异常
	 */
	public static final String REVERSE_BINDING_EXCEPTION = "3000";
	
	/**
	 * 用户已经绑定其他中行账号
	 */
	public static final String REVERSE_BINDING_OTHER = "4000";
	
	/**
	 * 验证码已过期或者未获取
	 */
	public static final String AUTH_CODE_LATE = "00000013";//
	
	/**
	 * 用户未绑定
	 */
	public static final String REVERSE_BINDING_NO= "5000";
	
	/**
	 * 联盟积分系统超时
	 */
	public static final String REVERSE_TIMEOUT = "8000";
	
	/**
	 * 系统异常
	 */
	public static final String REVERSE_BINDING_ERROR = "9999";
	
	/**
	 * 系统异常
	 */
	public static final String SYS_ERR = "99999999";//
	public static void main(String[] args) {
		System.out.println(new ContantRC(SUCCESS).msg);
	}

}
